import {ajax} from "@/utils/ajax.js"


export const getMyfaces = ({pageNo=1,pageSize=10})=>{
	return ajax({
		url: '/userFace/myList',
		data: {
			pageNo,
			pageSize
		}
	})
}

export const addFace = ({imgUrl,imgHeight,imgWidth})=>{
	return ajax({
		url: '/userFace/add',
		data: {
			imgUrl,
			imgHeight,
			imgWidth
		}
	})
}


export const removeFace = (ids)=>{
	return ajax({
		url: '/userFace/delete',
		data: {
			ids
		}
	})
}

export const topFace = (id)=> {
	return ajax({
		url: '/userFace/upTop',
		data: {
			id
		}
	})
}